package cn.kn.triage.sys.controller;

import cn.kn.triage.common.model.R;
import cn.kn.triage.sys.service.VUserRoleService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author yinzn
 * @create 2020-10-15 17:46
 */
@RestController
@RequestMapping("sys/vuserrole")
public class VUserRoleController {
    private final VUserRoleService vUserRoleService;

    public VUserRoleController(VUserRoleService vUserRoleService) {
        this.vUserRoleService = vUserRoleService;
    }

    @GetMapping
    public R findAll(){
        return vUserRoleService.findAll();
    }
}
